export function createRequiredRule(label = '', type?: string) {
  const rule: any = { required: true, message: label + '不能为空' }

  if (type) {
    rule.type = type
  }

  return rule
}
